package com.adams.common;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

import com.adams.config.engine.PropertesEngine;


/**
 * 
 * 
 * File Name : EventProperties.java
 * 
 * @Description : 事件配置文件
 * @author 902990封文进
 */
public class EventProperties
{
	private static Properties props = new Properties();

	static
	{
		InputStream is = PropertesEngine.class.getClassLoader()
				.getResourceAsStream("event.properties");
		try
		{
			if (is != null)
			{
				props.load(is);
				is.close();
			}
		} catch (IOException e)
		{
			throw new RuntimeException("loading event.properties file error");
		}
	}

	private EventProperties()
	{

	}

	/**
	 * 
	 * Description : 获取属性值
	 * 
	 * @param key
	 * @return String
	 * 
	 */
	public static String getProperty(String key)
	{
		return props.getProperty(key);
	}
}
